//
//  Temperature.swift
//  SwiftWeather
//
//  Created by shen on 2023/8/28.
//

import Foundation

enum TemperatureUnits: String {
    case celsius = "ºC"
    case fahrenheit = "ºF"
}

struct Temperature {
    var degrees: Int
    var units: TemperatureUnits

    var stringFormat: String {
        degrees.toTemperature(in: units)
    }
}
